package com.lagou.niancheng.core.session;


import com.lagou.niancheng.core.config.MappedStatement;

import java.util.List;

public interface Executor {

    List<Object> query(MappedStatement mappedStatement, Object... params) throws Exception;

    void update(MappedStatement mappedStatement, Object... params) throws Exception;

    void insert(MappedStatement mappedStatement, Object... params) throws Exception;

    void delete(MappedStatement mappedStatement, Object... params) throws Exception;
}
